<?php

namespace app\admin\validate;

use think\Validate;

class JobConfig extends Validate
{
    //字段规则
    protected $rule = [
        'name' => 'require',
        'identify' => 'require',
        'execute_time' => 'require',
    ];

    //验证器提示信息
    protected $message = [
        'name.require' => '请输入任务名字',
        'identify.require' => '请输入任务唯一标识',
        'execute_time.require' => '请输入执行时间',
    ];

    //使用场景
    protected $scene = [
        'edit'   => ['name','identify','execute_time']
    ];
}